package org.keyyond.ms.gateway.dao;

import org.keyyond.ms.gateway.mapper.MsAccessConfigMapper;
import org.keyyond.ms.gateway.model.MsAccessConfig;
import org.keyyond.ms.gateway.util.BaseDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author YCR
 * @belong to Shccs
 * @date:2018年1月22日
 * @date:2018年1月22日
 * @version : V1.0
 */
@Component
public class MsAccessConfigDao extends BaseDao<MsAccessConfig>{
	
	@Autowired
	MsAccessConfigMapper keyyondAccessConfigMapper;
	
	public int deleteByPrimaryKey(String seqno)
	{
		return keyyondAccessConfigMapper.deleteByPrimaryKey(seqno);
	}

	public int insert(MsAccessConfig record)
    {
    	return keyyondAccessConfigMapper.insert(record);
    }

	public int insertSelective(MsAccessConfig record)
    {
    	return keyyondAccessConfigMapper.insertSelective(record);
    }

	public MsAccessConfig selectByPrimaryKey(String seqno)
	{
		return keyyondAccessConfigMapper.selectByPrimaryKey(seqno);
	}

	public int updateByPrimaryKeySelective(MsAccessConfig record)
	{
		return keyyondAccessConfigMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(MsAccessConfig record)
	{
		return keyyondAccessConfigMapper.updateByPrimaryKey(record);
	}

	public MsAccessConfig hasPermit(MsAccessConfig record)
	{
		return keyyondAccessConfigMapper.hasPermit(record);
	}
}
